﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Scheduling.Models.Interfaces
{
    public interface IRoomPropertyLoader
    {
        /// <summary>
        /// Loads all the properties from the database.
        /// </summary>
        /// <returns></returns>
        List<RoomProperty> GetAllRoomProperties();

        /// <summary>
        /// Checks if roomp property with the given name already exists
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        bool RoomPropertyExists(string name);

        /// <summary>
        /// Fetches the ID of a given property. If property does not exist returns -1
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        int GetPropertyID(string name);

        /// <summary>
        /// Gets the highest ID of the Properties.
        /// </summary>
        /// <returns></returns>
        int GetHighestID();
    }
}